package com.etone.thread;

public class ThreadObject extends Thread{
	
	public static void main(String[] args) {
		Thread t = new ThreadObject();
		System.out.println(t);
		t.start();
		try {
			Thread.sleep(100);
		} catch (InterruptedException e) {
		}
		
		System.out.println(t.getState());
		System.out.println(t.isAlive());
		t.start();
		
	}
	
	@Override
	public void run(){
		
			System.out.println("recursive1");
			System.out.println("recursive2");
			/**
			 * yield cause current thread object being ready status
			 */
			Thread.yield();
			System.out.println("recursive3");
	}

}
